﻿using Sino.Tms.Primitives;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Sino.CapacityCloud.Repositories.Models
{

    public class Quotation
    {

        [Key()]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public string QuotationId { get; set; }

        public string OrderId { get; set; }

        public string UserId { get; set; }

        public double Price { get; set; }

        public PriceUnit Unit { get; set; }

        public string Description { get; set; }

        public DateTime Time { get; set; }

        public string Remarks { get; set; }

        public virtual Order Order { get; set; }

        public virtual ApplicationUser User { get; set; }

        public Quotation()
        {
            this.QuotationId = Guid.NewGuid().ToString();
        }

    }

}